package com.ymt.bpm.service.platform.config;

import com.alibaba.fastjson.JSONObject;
import com.ymt.bpm.model.PDict;

/**
 * Created by Johnny on 2017/9/20.
 */
public interface DictService {

    JSONObject query(String tenantId, String appId, String search, String sort,
                     String order, int offset, int limit, int timezoneOffset);

    JSONObject save(String tenantId, String loginName, String displayName, PDict dict);

    String checkAttr(String tenantId, String attrName, String value, Long id);

    JSONObject delete(String tenantId, String loginName, String displayName, Long id);

    JSONObject queryValue(String tenantId, Long id);

    JSONObject saveValue(String tenantId, String loginName, String displayName, Long id, String type, String typedesc, String relationkey, String zh, String en, Short sort);

    String checkValue(String tenantId, String relationkey, String type, Long id);

    JSONObject delValue(String tenantId, String loginName, String displayName, String relationkey, Short sort, String type, Long id);

    JSONObject reorderValue(String tenantId, String loginName, String displayName, String sorts, String type, Long id);

    JSONObject queryDictDhx(String tenantId, String appId, String args, String ordercolumns, String lang, int fromRow, int toRow, int timezoneOffset);

}
